package cn.skyclass.controls
{
	import mx.controls.TextArea;

	/**
	 * 可以切换成纯显示状态(不可编辑)的 TextArea
	 * @author fl
	 */
	[Bindable]	
	public class DisplayTextArea extends TextArea
	{
		public function DisplayTextArea()
		{
		}

		override public function get editable():Boolean{
			return super.editable;
		}
		override public function set editable(value:Boolean):void{
			super.editable = value;
			
			var style:String = value ? "solid" : "none";
			setStyle("borderStyle", style);
		}
	}
}